package com.wang.designpattern.factory.absfactory.store;

import com.wang.designpattern.factory.absfactory.pizza.BJCheesePizza;
import com.wang.designpattern.factory.absfactory.pizza.BJGreekPizza;
import com.wang.designpattern.factory.absfactory.pizza.BJPepperPizza;
import com.wang.designpattern.factory.absfactory.pizza.Pizza;
import com.wang.designpattern.factory.absfactory.tea.BJTea;
import com.wang.designpattern.factory.absfactory.tea.Tea;

public class BJFactory implements AbsFactory {
    @Override
    public Pizza createPizza() {
        Pizza pizza = new BJCheesePizza();
        /*if (orderType.equals("cheese")) {
            pizza = new BJCheesePizza();
        } else if (orderType.equals("pepper")) {
            pizza = new BJPepperPizza();
        } else if (orderType.equals("greek")) {
            pizza = new BJGreekPizza();
        }*/
        return pizza;
    }

    @Override
    public Tea getTea() {
        return new BJTea();
    }
}
